package com.kalix.mooc.school.api.dto;

import java.util.ArrayList;
import java.util.List;

public class SchoolTreeDTO {
    private Long id;
    private String name;
    private Long parentId;  // 父节点
    private String parentName; //父节点名称
    private String code;   // code码
    private List<SchoolTreeDTO> children = new ArrayList<SchoolTreeDTO>();


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<SchoolTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<SchoolTreeDTO> children) {
        this.children = children;
    }
}
